<template>
  <div>
    <div class="box">
      <div class="nav" v-for="i in 10" :key="i" @click="pushFn">
        <div class="img">
          <img src="@/assets/1.png" alt="" />
        </div>
        <p>京东超市</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    pushFn() {
      this.$router.push("/goodsList");
    },
  },
};
</script>

<style scoped lang="less">
.box {
  width: 100%;
  height: 168px;
  background-color: #fff;
  position: relative;
  top: 187px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  .nav {
    width: 20%;
    height: 70px;
    margin-top: 10px;
    // border: 1px solid black;
    display: flex;
    flex-direction: column;
    // justify-content: center;
    align-items: center;
    .img {
      width: 45px;
      height: 45px;
      //   background-color: pink;
      img {
        width: 100%;
      }
    }
    p {
      font-size: 16px;
    }
  }
}
</style>
